/*
 * @Author: lwHao
 * @Date: 2020-11-04 15:44:47
 * @LastEditors: lwHao
 * @LastEditTime: 2020-11-08 18:48:50
 */
// This is the main.js file. Import global CSS and scripts here.
// The Client API can be used here. Learn more: gridsome.org/docs/client-api

import DefaultLayout from '~/layouts/Default.vue'
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
import store from './store'
import util from './utils/util'

export default function (Vue, { router, head, isClient, appOptions }) {
  // Set default layout as a global component
  Vue.component('Layout', DefaultLayout)
  Vue.use(ElementUI);
  Vue.prototype.$util = util
  appOptions.store = store
}
